//
//  LzwBetweenCollectCell.m
//  NewHalfsugar
//
//  Created by 刘志武 on 16/1/6.
//  Copyright © 2016年 刘志武. All rights reserved.
//

#import "LzwBetweenCollectCell.h"
#import "UIImageView+WebCache.h"
#import "LzwBaseImageView.h"

@interface LzwBetweenCollectCell ()

@property (nonatomic, retain) LzwBaseImageView *myCollectImage;

@end

@implementation LzwBetweenCollectCell

-(void)dealloc{
    [_myCollectImage release];
    [super dealloc];
    
}

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        [self  creatOne];
    }
    return self;
}

- (void)creatOne{
    
    self.myCollectImage = [[LzwBaseImageView alloc]initWithFrame:CGRectMake(0, 0, 90, 90)];
    self.myCollectImage.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.myCollectImage];
    
    
    
}


-(void)setModleCollect:(LzwNewBetweenModle *)modleCollect{
    
    if (_modleCollect != modleCollect) {
        [_modleCollect  release];
        _modleCollect = [modleCollect retain];
    }
    
    NSURL *url = [NSURL URLWithString:self.modleCollect.photo];
    
    [self.myCollectImage sd_setImageWithURL:url placeholderImage:nil];
    
}

@end
